<?php
class Admin_Form_AddCruiseItinerary extends Apps_Form {
	public function init() {
		$code = new Zend_Form_Element_Text(
				'en_code',
				array('label' 		=> 'Itinerary code (En)',
					  'required'	=> true,
						'filters'		=> array('StringTrim')));
		
		$viCode = new Zend_Form_Element_Text(
				'code',
				array('label' 		=> 'Itinerary code (Vi)',
						'filters'		=> array('StringTrim')));
		
		$title = new Zend_Form_Element_Text(
				'title',
				array('label' 		=> 'Itinerary name (Vi)',
						'filters'		=> array('StringTrim')));

		$enTitle = new Zend_Form_Element_Text(
				'en_title',
				array('label' 		=> 'Itinerary name (En)',
						'filters'		=> array('StringTrim')));

		$description = new Zend_Form_Element_Textarea(
				'description',
				array('label' => 'Description',
					  'cols'	=> 80));

		$this->setLegend("Add New Cruise's Itinerary");
		$this->addElement($code)
			 ->addElement($viCode)
			 ->addElement($title)
			 ->addElement($enTitle)
			 ->addElement($description);

		$this->addActionGroup()
			 ->makeup();
	}
}